/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.srcptit.trainning.thompv.btvn1;
import java.util.Scanner;
/**
 *
 * @author SONY
 */
public class Bai4Muc1 
{
    static boolean ngto(int n)
    {
        if(n<2) return false;
        for(int i=2;i<=(int)Math.sqrt(n);i++)
            if(n%i==0) return  false;
        return true;
    }
    public static void main(String[] args)
    {
        Scanner sc= new Scanner(System.in);
        int dem=1,i=2,n;
        n=sc.nextInt();
        while(dem<=n)
        {
            if(ngto(i))
            {
                System.out.print(i+"   "); dem++;
            }
            i++;
        }
        System.out.println("");
    }
    
}
